package piece5.chapter18;

public class Problem18_5 {
    PrintChar print = new PrintChar('A', 50);
}

class PrintChar extends Thread {
    private char charToPrint;
    private int  times;

    public PrintChar(char c, int t) {
	charToPrint = c;
	times = t;
    }

    public void run() {
	for (int i = 0; i < times; i++) {
	    System.out.println(charToPrint);
	}
    }

}
